package priv.happy.mealpickpro.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import priv.happy.mealpickpro.domain.PickLog;
import priv.happy.mealpickpro.dto.UserPickCount;
import priv.happy.mealpickpro.mapper.PickLogMapper;
import priv.happy.mealpickpro.service.PickLogService;

import java.util.List;

/**
* @author HAPPY
* @description 针对表【pick_log】的数据库操作Service实现
* @createDate 2023-10-11 08:43:56
*/
@Service
public class PickLogServiceImpl extends ServiceImpl<PickLogMapper, PickLog>
    implements PickLogService {
    @Autowired
    PickLogMapper pickLogMapper;

    @Override
    public List<UserPickCount> countUserPicks() {
        return pickLogMapper.countUserPicks();
    }
}




